<html>
<body>

<%= form_for(@power_log) do |f| %>
  <% if @power_log.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@power_log.errors.count, "error") %> prohibited this power_log from being saved:</h2>

      <ul>
      <% @power_log.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :loadbox_id %><br />
    <%= f.number_field :loadbox_id %>
  </div>
  <div class="field">
    <%= f.label :logged_at %><br />
    <%= f.time_select :logged_at %>
  </div>
  <div class="field">
    <%= f.label :power_consumption %><br />
    <%= f.text_field :power_consumption %>
  </div>
  <div class="field">
    <%= f.label :ppv %><br />
    <%= f.text_field :ppv %>
  </div>
  <div class="field">
    <%= f.label :pgrid %><br />
    <%= f.text_field :pgrid %>
  </div>
  <div class="field">
    <%= f.label :net_dollars %><br />
    <%= f.text_field :net_dollars %>
  </div>
  <div class="field">
    <%= f.label :net_peak %><br />
    <%= f.text_field :net_peak %>
  </div>
  <div class="field">
    <%= f.label :net_off_peak %><br />
    <%= f.text_field :net_off_peak %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
</body>
</html>
